awilliam@xenbuild.aw [Fri, 3 Mar 2006 20:03:39 +0000 (13:03 -0700)]
[IA64] VTI: Use 16K page size to emulate guest physical mode
Previously VMM use 4k to emulate guest physical mode on VTI-domain to
satisfy the requirement of speculation attribute in physical mode, please
refer to 4.4.6 Speculation Attributes of Itanium SDM 2
Seems like guest doesn't need to conform to this
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 3 Mar 2006 17:11:33 +0000 (10:11 -0700)]
[IA64] Avoid double reclaim dom0 image and dom0 initrd
VMM doesn't need to reclaim dom0 image and dom0 initrd by using
init_domheap_pages, because they have been reclaimed by below code:
in function start_kernel of xensetup.c
efi_memmap_walk(filter_rsvd_memory, init_boot_pages);
Reclaiming again may cause xen hang at very beginning.
BTW, dom0 initrd is for dom0 not for xen, it will be copied into dom0
memory space, so VMM doesn't need to reserve memory for dom0 initrd.
Commenting below definition makes dom0 initrd reclaimable.
-#define CONFIG_BLK_DEV_INITRD // needed to reserve memory for domain0
+//#define CONFIG_BLK_DEV_INITRD // needed to reserve memory for domain0
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 22:06:24 +0000 (15:06 -0700)]
[IA64] sparse update for 2.6.16-rc5
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 21:15:44 +0000 (14:15 -0700)]
[IA64] default to SMP
UP builds are not maintained on xen-unstable, we seem to be
running SMP well enough to make the transition.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 21:12:30 +0000 (14:12 -0700)]
[IA64] Turn on CONFIG_XEN_BLKDEV_BACKEND
We relied on the Makefile for building this before, now we
need it set in our .config file.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 19:47:25 +0000 (12:47 -0700)]
merge
awilliam@xenbuild.aw [Wed, 1 Mar 2006 17:01:54 +0000 (10:01 -0700)]
[IA64] Every processor call xen_early_setup (required on SMP-guest to set ivt).
Only BP set running_on_xen.
xensetup.S slightly compacted.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 16:53:17 +0000 (09:53 -0700)]
[IA64] warning cleanup
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
emellor@leeni.uk.xensource.com [Wed, 1 Mar 2006 16:52:37 +0000 (17:52 +0100)]
Remove unused #include <sys/ioctl.h>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
awilliam@xenbuild.aw [Wed, 1 Mar 2006 15:29:00 +0000 (08:29 -0700)]
[IA64] VTI: updated vtlb, support_non_contiguous memory on vtidomain
Previously VTI-domain only supported contiguous memory,
this patch is intended to make VTI-domain support non-contiguous memory.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Wed, 1 Mar 2006 13:49:31 +0000 (14:49 +0100)]
Clean wrpt state when emulating CR3 write.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 21:57:38 +0000 (22:57 +0100)]
SVM patch to add 64bit hv support.
This patch only modifies svm files.
Tested with c/s 9015 with 32bit hv using UP Dom0, with UP linux and
winxpsp1 unmodified guests.
Tested with c/s 9015 with 64bit hv using UP Dom0, with 32bit and 64bit
UP linux and 32bit winxpsp1.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 20:18:08 +0000 (13:18 -0700)]
[IA64] Unused fields in mm_struct commented out.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 20:10:16 +0000 (13:10 -0700)]
[IA64] Misc clean-up and warnings removal.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:43:08 +0000 (12:43 -0700)]
[IA64] xen_timer_interval removed (was not used).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:23:46 +0000 (12:23 -0700)]
[IA64] delivery_mask removed (was unused).
The field was renamed in arch-ia64.h for backward compatibility with xen linux.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 19:02:50 +0000 (12:02 -0700)]
[IA64] Found the lost memory
This patch can work around virtual memmap/discontig memory issues,
but memory gain may not be realized.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 18:00:15 +0000 (19:00 +0100)]
Allow tpmfront/tpmback to be built as modules.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 17:59:24 +0000 (18:59 +0100)]
Allow netback to be built as a module.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 17:56:00 +0000 (18:56 +0100)]
Allow blkback to be built as a module.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:29:30 +0000 (10:29 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:26:43 +0000 (10:26 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/linux-xen)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:24:03 +0000 (10:24 -0700)]
[IA64] cleanup warning in xen/ia64 (arch/ia64/linux)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:21:54 +0000 (10:21 -0700)]
[IA64] cleanup warning in xen/ia64 (include/asm-ia64)
These patches fix many issue (ex. panic dom0, oops domU/dom0...).
we will fix compile warnnings one step at a time.
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 17:15:18 +0000 (18:15 +0100)]
Avoid using unexported add_timer_on() function in netback driver.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Tue, 28 Feb 2006 17:13:55 +0000 (10:13 -0700)]
[IA64] Cleanup hypercall.h
Cleanup to hypercall.h of ia64 xenlinux, and remove used stuff.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 16:45:20 +0000 (17:45 +0100)]
Sketch a new interface for transferring hypercall arguments in memory.
Instead of manipulating guest virtual addresses, 'guest handles' are
passed across the hypercall interface, which may only be manipulated
via the interface exported by guest_access.h.
So far this has only been applied to the memory_op hypercall. The
interfaces are still subject to change. Other hypercalls can be updated
after the interface is agreed upon.
Also cleaned up the hypercall_create_continuation() interface to take
a format string and different-typed varargs (they do not all need to
be castable to longs).
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 10:58:45 +0000 (11:58 +0100)]
Clean up management of 'initial images' temporary buffers.
Avoid double-freeing boundary pages.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 10:41:54 +0000 (11:41 +0100)]
Fix tools Makefiles to respect CFLAGS. Disable stack-smash
protection when building vmxassist/hvmloader.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 10:07:18 +0000 (11:07 +0100)]
Add 'm' debug key to print free-memory info.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:18:34 +0000 (10:18 +0100)]
Fix a multi HVM domain issue (bugzilla bug #542):
This issue can be reproduced on SMP platform, while the domain 0
is UP. The reason is, after finishing a dma request, the dma thread will
trigger the interrupt and then clear the call back function. When guest
get the interrupt , it will try to check the call back function, if it
is set, then it will trigger a dma request again. So if the checking for
the callbackfunction happens between trigger interrupt and clear
callback function on dma thread, it will cause NULL function calling.
After with domain 0 UP and smp platform, this situation can be
reproduced easily.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:14:32 +0000 (10:14 +0100)]
Fix SVM cr0 handling.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:14:10 +0000 (10:14 +0100)]
Fix SVM PAE support.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:13:26 +0000 (10:13 +0100)]
Fix SVM guest pin timer migration logic.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:12:29 +0000 (10:12 +0100)]
Fix SVM vlapic logic.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
kaf24@firebug.cl.cam.ac.uk [Tue, 28 Feb 2006 09:11:33 +0000 (10:11 +0100)]
Removing hvm_safe_block() from the SVM hlt function avoids SVM guest problems.
This is a temporary solution.
Signed-off-by: Tom Woller <thomas.woller@amd.com>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 21:00:33 +0000 (14:00 -0700)]
[IA64] fix SMP bug for vhpt
vhpt_paddr & vhpt_pend are now per-cpu variables, since VHPT is allocated
per cpu. This should really improve stability.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 20:31:10 +0000 (13:31 -0700)]
[IA64] warning removal: NR_CPUS
linux/threads nullified (moved to linux-null).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 27 Feb 2006 20:16:16 +0000 (13:16 -0700)]
[IA64] SMP_HOST: Alloc vhpt from domheap
It's more reasonable to alloc vhpt from domheap, instead of xenheap.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 17:44:38 +0000 (18:44 +0100)]
Merged.
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 17:27:52 +0000 (17:27 +0000)]
Add support for configuring feature flags when starting guests.
Guest configuration files may now contain a features= declaration
listing the features which should be enabled in a | separated
list.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
cl349@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 16:56:08 +0000 (16:56 +0000)]
Update to Linux 2.6.16-rc5.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 16:55:22 +0000 (17:55 +0100)]
Check feature flag supervisor_mode_kernel in dom0 builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 16:26:16 +0000 (17:26 +0100)]
Reconstitute the ip parameter correctly. Closes bug #491.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 16:18:58 +0000 (17:18 +0100)]
Allow a guest to switch pagetables 'atomically'. That is, the new pagetables
do not need to be read-only in the old pagetables, and the old pagetables do
not need to be read-only in the new pagetables.
Signed-off-by: Keir Fraser <keir@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 16:16:28 +0000 (17:16 +0100)]
Use cleverer sed pattern to avoid use of head -1.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 16:16:04 +0000 (17:16 +0100)]
Break out the hotplug cleanup code into xen-hotplug-cleanup. Claim the block
script's lock before doing the cleanup, to avoid a race that causes the message
"xenstore-list: could not list path backend/vbd/40" in /var/log/hotplug.log,
with a subsequent refusal to create the domain, after a domain reboot.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 15:29:03 +0000 (16:29 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 15:28:57 +0000 (16:28 +0100)]
Move files that have appeared in the wrong place due to incorrect patch -p setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 15:22:02 +0000 (16:22 +0100)]
xen/ia64 uaccess is still linux style with different declaration as
common xen. It's meaningless to patch original file with many #ifdef
XEN, and so instead copy that file to create a new xen specific
uaccess file, with unused lines removed. May need render later.
Or else it breaks compilation on xen-unstable.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 15:20:23 +0000 (16:20 +0100)]
Fix a missed unmap in __entry().
On x86_32p, after several creation/destroy of VMX domain, xen crashes
because we forget to unmap phys_table.
Signed-off-by: Xin Li <xin.b.li@intel.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 15:14:11 +0000 (16:14 +0100)]
While testing TCP & UDP tests (coming soon), I tracked down a bug in the
IP addressing scheme
used by xm-test: each machine running network tests is using the same IP
addresses, so two machines
in the same network can cross-pollinate/interfere with each other's tests.
This patch changes the IP addressing scheme to add some randomness. It's
gone through a couple of dozen
passes of xm-test, some on -bridge and some on -route, while xm-test was
running on another box on the same network.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 15:13:05 +0000 (16:13 +0100)]
The attached patch does the following:
- introduces two basic tests for the virtual TPM (skipped on hardware
where a TPM is not available or vtpm manager has not been started
manually before)
- adapts the Makefiles to make the test cases available
- splits up the hotplug files into two files where the vtpm-common.sh
can be sourced by 'other' scripts as well
- uses echo "$var" to return variables from functions
- gets rid of the 'set +e" work-around
- introduces a script (vtpm-delete) to delete entries from the virtual
TPM directory in /etc/xen/vtpm.db
The xm-tests will skip over the 2nd test on most systems and the patch
has otherwise no effect on existing tests.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 15:11:01 +0000 (16:11 +0100)]
The attached patch breaks out
- log() function from xen-hotplug-common.sh -> logging.sh
- locking-related functions from xen-hotplug-common.sh -> locking.sh
- xen-hotplug-common.sh 'sources' both those files now to not loose
these functions (which should make the break-out atomic)
- adapts the Makefile to install locking.sh and logging.sh at the right
place.
I ran the xm-tests over it and no (additional) errors appear due to this
change.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 14:52:43 +0000 (15:52 +0100)]
Add a compile time option to enable domain 0 running in ring 0.
In this mode only a single guest kernel is supported.
This mode only works for x86/32 (not x86/64).
Signed-off-by: Ian Campbell <Ian.Campbell@XenSource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 11:02:00 +0000 (11:02 +0000)]
merge
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 11:01:06 +0000 (11:01 +0000)]
List pae_pgdir_above_4gb in features for x86/32 Linux kernel.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 10:59:31 +0000 (10:59 +0000)]
merge.
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 10:58:17 +0000 (10:58 +0000)]
Support XENFEAT_supervisor_mode_kernel in x86/64 HYPERVISOR_IRET macro
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian.Campbell@xensource.com [Mon, 27 Feb 2006 10:55:13 +0000 (10:55 +0000)]
Only panic() if the dom0 kernel requires an unknown feature flag.
It is acceptable for a guest kernel to support (but not require)
a feature which the hypervisor does not understand.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
emellor@leeni.uk.xensource.com [Mon, 27 Feb 2006 10:55:11 +0000 (11:55 +0100)]
Merged.
cl349@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 10:34:03 +0000 (10:34 +0000)]
Fix non-xen build for: Make the fixmap area moveable in kernel address space.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 10:31:30 +0000 (10:31 +0000)]
Add arch/i386/mm/pgtable.c to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 10:27:57 +0000 (10:27 +0000)]
Fix non-xen build for: Move the gate page (vsyscall) out of the fixmap area
into user address space, just below PAGE_OFFSET.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 10:26:01 +0000 (10:26 +0000)]
Add include/asm-i386/{fixmap,page}.h to sparse tree.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 27 Feb 2006 07:44:11 +0000 (08:44 +0100)]
Define strlcpy() in include/xen/string.h
Signed-off-by: Tsunehisa Doi <doi.tsunehisa@jp.fujitsu.com>
Signed-off-by: Kouya SHIMURA <kouya@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 15:38:59 +0000 (16:38 +0100)]
Periodically sytnchronize Xen's wallclock time with NTP-synchronized time in domain0.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 09:55:21 +0000 (10:55 +0100)]
The disk isn't guaranteed to be the first device in the config sxp --
make sure we can restart domains when using a boot loader even if not.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 09:54:06 +0000 (10:54 +0100)]
pygrub currently takes a file on the command line to mean a config file
if it can't figure out partitions and filesystems. This then makes it
balloon to absurd sizes. Make this only happen if you pass a debugging
flag
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 09:53:18 +0000 (10:53 +0100)]
Instead of using a static filename in the guest bootloader, use a random
filename so that multiple guests can start up simultaneously.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 09:50:15 +0000 (10:50 +0100)]
Add 'console=xxx' to the Xen serial console section to make it obvious
that one might need to specify 'console=xxx' and not just 'comX=xxx'
if one isn't using the default com1,vga.
Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
kaf24@firebug.cl.cam.ac.uk [Sun, 26 Feb 2006 09:42:07 +0000 (10:42 +0100)]
Cross-compilation fixes (x86/64 on i386).
Use strtoull to parse the final_exec_addr value from the command
line. Whe cross compiling on i386 for x86-64 unsigned long is 32 bit,
which leads to final_exec_addr being truncated to 32 bits by strtoul,
which leads to grub refusing to load the resulting image. Please
apply.
Use the target nm(1) when cross compiling to pick the _end address
from the Xen binary.
Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
kaf24@firebug.cl.cam.ac.uk [Sat, 25 Feb 2006 21:29:18 +0000 (22:29 +0100)]
Fix assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 25 Feb 2006 20:28:27 +0000 (21:28 +0100)]
New VCPUOP_register_runstate_memory_area hypercall. Avoids
need for a hypercall in the guest timer interrupt handler.
Cleaned up stolen/blocked tick handling in Linux.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 25 Feb 2006 19:07:28 +0000 (20:07 +0100)]
Update Linux time IRQ handler to understand the new stolen/blocked cycle counts
exported by Xen. This is based heavily on a patch from Rik van Riel, but
extended to distinguish between idle/blocked cycles and stolen cycles.
There is still stuff todo:
1. Xen should export the time values in shared memory, to save a hypercall
on every time interrupt (even though that is only every 10ms, worst case).
2. As in s390, Xen's cputime_t should be measured at finer granularity than
jiffies. Nanoseconds would be a better unit.
3. Break out the internals of the account_steal_time() interface so that we don't
need to abuse it so wretchedly.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 25 Feb 2006 16:58:37 +0000 (17:58 +0100)]
New VCPUOP_get_runstate_info hypercall. Returns information about the current
run state of a VCPU (running, runnable, blocked, etc.) and the total time
spent in each state since the VCPU was created.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 25 Feb 2006 11:27:53 +0000 (12:27 +0100)]
Avoid pcnet dm packet loss / corruption.
Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 22:41:08 +0000 (15:41 -0700)]
merge
awilliam@xenbuild.aw [Fri, 24 Feb 2006 21:03:07 +0000 (14:03 -0700)]
[IA64] SMP_HOST: map pal code on smp host
On up host, only when rr7 is changed, efi_map_pal_code() is called to
remap pal code on new rr7. But on smp host, efi_map_pal_code is also
called to map pal code for other processors, which may not satisfy rr7
change condition, thus pal code may not be mapped in some processors,
while ia64_pal_halt_light called in startup_cpu_idle_loop will cause
machine crash.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:38:26 +0000 (13:38 -0700)]
[IA64] VTI: Fix two bugs
1. Vmx_check_pending_irq should not be called in vmx_vcpu_set_eoi,
because vmx_vcpu_increment_iip is called after vmx_vcpu_set_eoi. That
is, the first instruction of guest interrupt handler will be skipped.
2. Remove code segment which was used to send events to VTIdomain, when
dom0 was VTIdomain. This is not needed any more, and will cause
VTIdomain on SMP-HOST complain "Unexpected interrupt ..." .
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:30:39 +0000 (13:30 -0700)]
[IA64] Clean up warnings related to VTi code. (header files)
This patch adds some functions' prototype declaration in corresponding
header file and removes issues suce as redefinition of some macros.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 20:29:18 +0000 (13:29 -0700)]
[IA64] Clean up warnings related to VTi code. (C files)
This patch removes most of the warnings such as incompatible assignment,
unused variables, return value type of some functions and so on.
Signed-off-by: Zhang Xiantao <xiantao.zhang @intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 18:34:54 +0000 (19:34 +0100)]
Split XENFEAT_ feature flags into new header file features.h.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 18:16:52 +0000 (19:16 +0100)]
Fix up CPU allocation and topology reporting.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 18:16:15 +0000 (19:16 +0100)]
Quieten down MSR access warnings.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 18:08:51 +0000 (11:08 -0700)]
[IA64] redefine raw_smp_processor_id()
There are two definitions of raw_smp_processor_id()
One is in file xen/include/asm-ia64/linux/asm/smp.h
#define raw_smp_processor_id() (current_thread_info()->cpu)
The other is in file /xen/include/asm-ia64/config.h
#define raw_smp_processor_id() current->processor
In fact, the first one takes effect, that's not correct.
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:50:27 +0000 (10:50 -0700)]
[IA64] another one to remove unused linux files within xen/ia64
This patch is to remove more unused linux files inside xen and also some
duplicated ones, like slab.h and cpumask.h. This should help reduce
duplicated definitions conflicting with xen's.
Signed-off-by Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 17:32:27 +0000 (10:32 -0700)]
[IA64] Remove unused Linux stuff
Signed-off-by Kevin Tian <kevin.tian@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 16:50:20 +0000 (17:50 +0100)]
Default minimum number of receive buffers queued by netfront is now 64, not 8.
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 16:41:27 +0000 (09:41 -0700)]
[IA64] fix ia64 cset 8906
Looks like we accidentially added a compliment op here, adding
one more to nullify. Fixed dom0 not booting.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 16:32:58 +0000 (17:32 +0100)]
Bring up AP of VMX domain.
1) add INIT-SIPI-SIPI IPI sequence handling code to HVM virtual lapic
code.
2) add an new interface init_ap_context to hvm_funcs, and implement the
VMX side.
3) add a hvm generic function hvm_bringup_ap, which in turn calls
init_ap_context.
Signed-off-by: Xin Li <xin.b.li@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 16:32:19 +0000 (17:32 +0100)]
Clean up p2m functions.
1) set_p2m_entry/alloc_p2m_table call domain_crash instead of
domain_crash_synchronous when map_p2m_entry return with failure, or dom0
will crash.
2) free_p2m_table now uses domain as parameter instead of vcpu.
3) add AP p2m initialization logic for VMX domain.
And some coding style cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 16:25:41 +0000 (17:25 +0100)]
Two missing exports (one of them needed only for PAE) prevented netfront from being built as a module.
From: Jan Beulich
Signed-off-by: Keir Fraser <keir@xensource.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:44:34 +0000 (08:44 -0700)]
[IA64] bug fix reserve_memory()
reserved_region[].start is of virtual address in identity
mapping. not physical address.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:41:21 +0000 (08:41 -0700)]
[IA64] import linux/include/asm-ia64/meminit.h from 2.6.16-rc3.
this is needed for a later patch to modify meminit.h
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:37:46 +0000 (08:37 -0700)]
[IA64] minor bug fix in xensetup.S
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
kaf24@firebug.cl.cam.ac.uk [Fri, 24 Feb 2006 15:37:09 +0000 (16:37 +0100)]
Another tiny C89 fix.
Signed-off-by: Bruce Rogers <brogers@novell.com>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:34:11 +0000 (08:34 -0700)]
[IA64] tlb miss fix
make dtlb miss handler to handle xen/ia64 identity mapping area.
xen/ia64 enables vhpt walker for all regions unlink Linux.
So dtlb misses on identity mapping area are catched by
dtlb miss handler, not alt dltb miss handler.
- dtlb miss on identity mapping area must be handled
- alt dtlb miss must be handled
- itlb miss on the identity mapping area must not occur
panic via page_fault().
- alt itlb miss by a guest must be handled
it occurs during dom0 boot.
- alt itlb miss by xen must not occur
panic by FORCE_CRASH
vmx_ivt.S already has such tweaks by checking psr.vm bit.
TODO: optimization
dtlb miss handlers are performance critical so that
it should be heavily optimized like alt_dtlb_miss.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:29:52 +0000 (08:29 -0700)]
[IA64] acpi printf fix
fix printf format miss. %0xlx -> 0x%lx
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 24 Feb 2006 15:28:36 +0000 (08:28 -0700)]
[IA64] cleanup itir_ps(), itir_mask()
code clean up.
itir_ps(), itir_mask()
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>